package string;

public class MatchesDemo {
    public static void main(String[] args) {
        String email = "123abc@tedu.com";
        boolean check = email.matches("[a-zA-Z0-9_]+@[a-zA-Z0-9]+(\\.[a-zA-Z]+)+");
        System.out.println(check);
    }
}
